@bd-color: #b7d4a8;
*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#main{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 360px;
    height: 420px;
    background: @bd-color;
    margin: 10px auto;
    border: 10px solid black;
    border-radius: 20px;
    padding: 20px 0 0;
    #stage{
        position: relative;
        width: 304px;
        height: 324px;
        border: 2px solid black;
        #snake{
            &>div{
                position: absolute;
                left: 0;
                top: 0;
                width: 10px;
                height: 10px;
                background: #000;
                margin-right: 2px;
                &:nth-last-child(1){
                    margin-right: 0;
                }
            }
        }
        &>.food{
            width: 10px;
            height: 10px;
            position: absolute;
            display: flex;
            flex-wrap: wrap;
            right: 30px;
            top: 30px;
            &>div{
                // position: absolute;
                width: 5px;
                height: 5px;
                background: black;
                transform: rotate(45deg);
                // &:nth-child(1){
                //     top: 0;
                //     left: 0;
                // }
            }
        }
    }
    .jifen{
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: space-around;
        width: 100%;
        .item{
            display: flex;
        align-items: center;
        
            .title{
                color: #000;
                font-weight: bold;
                font-size: 16px;
            }
            .hint{
                color: #333;
                font-size: 16px;
            }
        }

        
    }
}
